/*============================================================================*/
/*  Copyright (C) 2009-2011, iSOFT INFRASTRUCTURE SOFTWARE CO.,LTD.
 *  
 *  All rights reserved. This software is iSOFT property. Duplication 
 *  or disclosure without iSOFT written authorization is prohibited.
 *  
 *  @file       <Xcp_Ram.c>
 *  @brief      <Xcp Module Var on running.>
 *  
 *  <Compiler: Codewarrior for mpc55xx v2.8     MCU:MPC56XX>
 *  
 *  @author     <Dongyuan.Sun, qitao.Yu>
 *  @date       <2013-03-06>
 */
/*============================================================================*/

/*=======[R E V I S I O N   H I S T O R Y]====================================*/
/*  <VERSION>    <DATE>    <AUTHOR>         <REVISION LOG>
 *  V1.0.0       20130306  Dongyuan.Sun     Initial version
 * 
 */
/*============================================================================*/

/*=======[I N C L U D E S]====================================================*/
#include "Xcp_Internal.h"

/*=======[V E R S I O N  C H E C K]===========================================*/

/*=======[E X T E R N A L   D A T A]==========================================*/
VAR(uint16, XCP_VAR) Xcp_SessionCfgId = 0;

VAR(uint8, XCP_VAR) Xcp_CmdBuffer[XCP_CTO_BUFFER_SIZE];
VAR(uint8, XCP_VAR) Xcp_RespBuffer[XCP_CTO_BUFFER_SIZE];
VAR(uint8, XCP_VAR) Xcp_EvBuffer[XCP_CTO_BUFFER_SIZE];
VAR(uint8, XCP_VAR) Xcp_ServBuffer[XCP_CTO_BUFFER_SIZE];

#if (XCP_PL_CAL == (XCP_PL_CAL&XCP_RESOURCE))
#if (XCP_PAG_SUPPORT == STD_ON)
VAR(uint8, XCP_VAR) Xcp_ActivPagNum[XCP_MAX_SEGMENT];
#endif
#endif

#if (XCP_PL_DAQ == (XCP_PL_DAQ&XCP_RESOURCE))
VAR(uint8, XCP_VAR) Xcp_DaqBuffer[XCP_DTO_BUFFER_SIZE];
VAR(Xcp_DaqType, XCP_VAR) Xcp_Daq[XCP_MAX_DAQ];
VAR(uint32, XCP_VAR) Xcp_EvChBufferUsage[XCP_MAX_EVENT_CHANNEL];
VAR(uint8, XCP_VAR) Xcp_EvChActivCnt[XCP_MAX_EVENT_CHANNEL];
#if (XCP_DAQ_PRIORITY_SUPPORT == STD_ON)
VAR(Xcp_DaqNumType, XCP_VAR) Xcp_DaqListQueue[XCP_MAX_DAQ][2];
#else   /* XCP_DAQ_PRIORITY_SUPPORT == STD_OFF */
VAR(Xcp_DaqNumType, XCP_VAR) Xcp_DaqListQueue[XCP_MAX_DAQ];
#endif  /* XCP_DAQ_PRIORITY_SUPPORT == STD_ON */
#if (XCP_DAQ_CONFIG_TYPE == XCP_DAQ_DYNAMIC)
#pragma align 4
VAR(uint8, XCP_VAR) Xcp_DynamicalDaqBuffer[XCP_DYNAMIC_DAQ_BUFFER_SIZE];
#pragma align restore
VAR(Xcp_DynamicalDaqQueueType, XCP_VAR) Xcp_DynamicalDaqQueue =
{
		XCP_DYNAMIC_DAQ_BUFFER_SIZE,
		0
};
#endif /* (XCP_DAQ_CONFIG_TYPE == XCP_DAQ_DYNAMIC) */
#endif /* (XCP_PL_DAQ == (XCP_PL_DAQ & XCP_RESOURCE)) */

#if (XCP_MASTER_BLOCK_MODE == STD_ON)
VAR(Xcp_AGType, XCP_VAR) Xcp_BlockBuffer[XCP_BLOCK_BUFFER_SIZE];
#endif

/*=======[E N D   O F   F I L E]==============================================*/

